import request from '@/utils/request'

// 查询题库中题目列表
export function listQuestion(query) {
  return request({
    url: '/questionBank/question/list',
    method: 'get',
    params: query
  })
}

// 新增题目
export function addQuestion(data) {
  return request({
    url: '/questionBank/question/add',
    method: 'post',
    data: data
  })
}

// 更改题目
export function updateQuestion(data) {
  return request({
    url: '/questionBank/question/update',
    method: 'post',
    data: data
  })
}

export function delQuestion(qid){
  return request({
    url: '/questionBank/question/del',
    method: 'post',
    data: qid
  })
}


